require("../../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pagesA/pages/userA/info" ], {
    "1f96": function(e, n, t) {
        t.r(n);
        var o, r = t("ac64"), u = t.n(r);
        for (o in r) "default" !== o && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(o);
        n.default = u.a;
    },
    "554d": function(e, n, t) {
        (function(e) {
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            t("0cda"), n(t("66fd")), e(n(t("c771")).default);
        }).call(this, t("543d").createPage);
    },
    ac64: function(e, t, a) {
        (function(r) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var e, o = (e = a("a34a")) && e.__esModule ? e : {
                default: e
            };
            function l(e, n, t, o, r, u, a) {
                try {
                    var i = e[u](a), l = i.value;
                } catch (e) {
                    return t(e), 0;
                }
                i.done ? n(l) : Promise.resolve(l).then(o, r);
            }
            var u = getApp(), n = {
                data: function() {
                    var o = this;
                    return {
                        module_name: u.globalData.module_name,
                        userinfo: r.getStorageSync("userinfo"),
                        setting: r.getStorageSync("setting"),
                        model: {
                            name: r.getStorageSync("userinfo").realname,
                            phone: r.getStorageSync("userinfo").mobile,
                            wxno: r.getStorageSync("userinfo").wxno,
                            alipayno: r.getStorageSync("userinfo").alipayno
                        },
                        rules: {
                            name: [ {
                                required: !0,
                                message: "请输入真实姓名",
                                trigger: "blur"
                            }, {
                                min: 2,
                                max: 10,
                                message: "姓名长度在2到10个字符",
                                trigger: [ "blur" ]
                            }, {
                                validator: function(e, n, t) {
                                    return o.$u.test.chinese(n);
                                },
                                message: "姓名必须为中文",
                                trigger: [ "blur" ]
                            } ],
                            phone: [ {
                                required: !0,
                                message: "请输入手机号",
                                trigger: [ "blur" ]
                            }, {
                                validator: function(e, n, t) {
                                    return o.$u.test.mobile(n);
                                },
                                message: "手机号码不正确",
                                trigger: [ "blur" ]
                            } ],
                            alipayno: [ {
                                required: !0,
                                message: "请输入支付宝账号",
                                trigger: [ "blur" ]
                            }, {
                                validator: function(e, n, t) {
                                    return o.$u.test.rangeLength(n, [ 5, 50 ]);
                                },
                                message: "支付宝账号不正确",
                                trigger: [ "blur" ]
                            } ],
                            wxno: [ {
                                required: !0,
                                message: "请输入微信号",
                                trigger: [ "blur" ]
                            }, {
                                validator: function(e, n, t) {
                                    return o.$u.test.rangeLength(n, [ 5, 50 ]);
                                },
                                message: "微信号不正确",
                                trigger: [ "blur" ]
                            } ]
                        },
                        border: !0,
                        labelPosition: "left",
                        errorType: [ "toast", "border" ]
                    };
                },
                props: {},
                onShow: function() {
                    r.hideLoading();
                },
                onReady: function() {
                    this.$refs.uForm.setRules(this.rules), this.user_info();
                },
                onLoad: function(e) {
                    var i, t = this;
                    return i = o.default.mark(function e() {
                        var n;
                        return o.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, t.$onLaunched;

                              case 2:
                                (n = t).setting = r.getStorageSync("setting"), n.userinfo = r.getStorageSync("userinfo"), 
                                t.module_name = u.globalData.module_name, r.hideLoading();

                              case 8:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }), function() {
                        var e = this, a = arguments;
                        return new Promise(function(n, t) {
                            var o = i.apply(e, a);
                            function r(e) {
                                l(o, n, t, r, u, "next", e);
                            }
                            function u(e) {
                                l(o, n, t, r, u, "throw", e);
                            }
                            r(void 0);
                        });
                    }();
                },
                methods: {
                    submit: function() {
                        var t = this;
                        this.$refs.uForm.validate(function(e) {
                            var n;
                            e ? (n = t, e = u.globalData.util.url("entry/wxapp/edit_userinfo", {
                                m: u.globalData.module_name
                            }), r.request({
                                url: e,
                                method: "GET",
                                data: {
                                    openid: r.getStorageSync("openid"),
                                    realname: n.model.name,
                                    mobile: n.model.phone,
                                    wxno: n.model.wxno,
                                    alipayno: n.model.alipayno
                                },
                                success: function(e) {
                                    r.showModal({
                                        title: "提示",
                                        content: "提交成功",
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && r.navigateBack({
                                                delta: 1
                                            });
                                        }
                                    });
                                }
                            })) : console.log("验证失败");
                        });
                    },
                    user_info: function() {
                        var n = this, e = u.globalData.util.url("entry/wxapp/userinfonew", {
                            m: u.globalData.module_name
                        });
                        r.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid")
                            },
                            success: function(e) {
                                r.setStorageSync("userinfo", e.data.data), n.userinfo = e.data.data;
                            }
                        });
                    }
                },
                components: {}
            };
            t.default = n;
        }).call(this, a("543d").default);
    },
    c771: function(e, n, t) {
        t.r(n);
        var o, r = t("dfe7"), u = t("1f96");
        for (o in u) "default" !== o && function(e) {
            t.d(n, e, function() {
                return u[e];
            });
        }(o);
        var a = t("f0c5"), r = Object(a.a)(u.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        n.default = r.exports;
    },
    dfe7: function(e, n, t) {
        t.d(n, "b", function() {
            return r;
        }), t.d(n, "c", function() {
            return u;
        }), t.d(n, "a", function() {
            return o;
        });
        var o = {
            uForm: function() {
                return t.e("uview-ui/components/u-form/u-form").then(t.bind(null, "1c79"));
            },
            uFormItem: function() {
                return Promise.all([ t.e("common/vendor"), t.e("uview-ui/components/u-form-item/u-form-item") ]).then(t.bind(null, "c4c3"));
            },
            uInput: function() {
                return Promise.all([ t.e("common/vendor"), t.e("uview-ui/components/u-input/u-input") ]).then(t.bind(null, "cde1"));
            },
            uButton: function() {
                return t.e("uview-ui/components/u-button/u-button").then(t.bind(null, "cad8"));
            }
        }, r = function() {
            this.$createElement;
            this._self._c;
        }, u = [];
    }
}, [ [ "554d", "common/runtime", "common/vendor" ] ] ]);